//
//  YFUserDefaults.h
//  SquashSpark
//
//  Created by Coollang on 2017/11/10.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YFUserDefaults : NSObject

+ (void)saveAppVersion:(NSString *)version;
+ (NSString *)storeAppVersion;

+ (void)saveLastLoginAccountID:(NSString *)accountID;
+ (NSString *)lastLoginID;

+ (void)setAutoLogin:(BOOL)hasLogin;
+ (BOOL)shouldAutoLogin;

+(NSArray *)zonesArray;
+(void)setZonesArray:(NSArray<NSString *> *)array;

// 个人中心通用设置
+ (void)setGeneralMetricSystemUnit:(BOOL)isMetric;
+ (BOOL)generalMetricSystemUnit;


//  是否需要刷新朋友圈数据
+ (void)saveMomentRefreshState:(BOOL)isNeed;
+ (BOOL)isNeedRefreshMoment;

//  是否需要刷新CLUB-ME界面布局
+ (void)saveClubMeRefreshState:(BOOL)isNeed;
+ (BOOL)isNeedRefreshClubMe;

// 同步主页数据最新更新的时间戳
+ (void)saveLastUpdateTime:(NSInteger)lastUpdateTime;
+ (NSInteger)lastUpdateTime;

/**
 是否需要展示引导图
 @return                是否需要引导
 */
+ (BOOL)isNeedGuideView;

//是否需要切换到ME
+ (void)saveClubOnMEState:(BOOL)isNeed;
+ (BOOL)isShowMe;

@end
